package ar.republicagroup.gestion.factory;

import ar.republicagroup.gestion.factory.beans.GastoBanco;
import ar.republicagroup.gestion.factory.beans.GastoDiario;
import ar.republicagroup.gestion.factory.beans.Pago;
import ar.republicagroup.gestion.factory.beans.Retiro;
import ar.republicagroup.gestion.services.MovimientoTipoServices;

/**
 *
 * @author DIEGOALV
 */
public class MovimientoCajaFactory {
    
    public static MovimientoCaja getMovimientoCaja(String tipoDeMov){
        
        switch (tipoDeMov) {
            case MovimientoTipoServices.RETIRO:
                return new Retiro();
            case MovimientoTipoServices.PAGOS:
                return new Pago();
            case MovimientoTipoServices.GASTOS_DIARIO:
                return new GastoDiario();
            case MovimientoTipoServices.GASTOS_BANCO:
                return new GastoBanco();
                
            default : return null;
        }
    }
    
}
